package com.ruoyi.mapper;

import com.ruoyi.domain.FileEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FileEntityMapper {
    int addFileEntity(FileEntity fileEntity);
    List<FileEntity> getFileList(@Param("taskId") String taskId , @Param("uid") Long userId);

    List<FileEntity> getFileListByRowId(@Param("rowId") String rowId);

    int deleteByRowIdAfter(@Param("rowId")String rowId);

    int updateByidAndtype(FileEntity fileEntity);

    FileEntity getFileListByRowIdAndFileType(@Param("rowId") String rowId,@Param("fileType")String fileType);


}
